<%@ page language="java" contentType="text/html; charset=utf8"
    pageEncoding="utf8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>

<!-- 存入的值 -->
<input type="hidden" class="projectPath" value="${pageContext.request.contextPath}" />
<script
		src="${pageContext.request.contextPath}/assets/js-lib/bootstrap/js/jquery.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="${pageContext.request.contextPath}/js/common/common.js"></script>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/assets/js-lib/bootstrap/css/bootstrap.min.css">

<link rel="stylesheet" href="${pageContext.request.contextPath}/assets/js-lib/bootstrap-zTree/css/zTreeStyle.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/common/wcmsIndex.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/assets/js-lib/bootstrap-Validation/dist/css/bootstrapValidator.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/assets/js-lib/bootstrap-Validation/vendor/bootstrap-datetimepicker.css"/>
<link rel="stylesheet"
	  href="${pageContext.request.contextPath}/assets/css/common/common_ui.css" />

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->




<!--bootstrap验证-->
<script
		src="${pageContext.request.contextPath}/assets/js-lib/ajaxUpload/ajaxfileupload.js"></script>

<script type="text/javascript"
		src="${pageContext.request.contextPath}/assets/js-lib/bootstrap-Validation/vendor/moment.js"></script>

<script type="text/javascript"
		src="${pageContext.request.contextPath}/assets/js-lib/bootstrap-Validation/dist/js/bootstrapValidator.js" charset="UTF-8"></script>
<!--bootstrap树-->
<script type="text/javascript"
		src="${pageContext.request.contextPath}/assets/js-lib/bootstrap-zTree/js/jquery.ztree.core-3.5.min.js"></script>
<script type="text/javascript"
		src="${pageContext.request.contextPath}/assets/js-lib/bootstrap-zTree/js/jquery.ztree.excheck-3.5.min.js"></script>

<!--layer-->
<link rel="stylesheet" href="${pageContext.request.contextPath}/assets/js-lib/layer/skin/default/layer.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js-lib/layer/layer.js"></script>

<!-- 富文本 -->

<script src="${pageContext.request.contextPath}/assets/js-lib/ckEditor/ckeditor.js"></script>

	<nav class="navbar navbar-default navbar-fixed-top" style="background:#2B2E32;">
		<div class="container" style="color:white;">

			<!-- Brand and toggle get grouped for better mobile display -->
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
					<span class="sr-only">走班排课</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="javascript:void(0);" style="color:white;font-size:23px;">DCAMPUS</a>
			</div>

			<!-- Collect the nav links, forms, and other content for toggling -->
			<div class="collapse navbar-collapse" id="navbar">
					<ul class="nav navbar-nav" id="ulNav">
						<!--菜单循环begin-->
						<li>
							<a href="${pageContext.request.contextPath}/index.do" class="orgLink">主页</a>
						</li>
						<c:forEach items="${authVOList}" var="auth">
							<c:if test="${empty auth.children}">
								<li>
									<a href="${pageContext.request.contextPath}${auth.authHref}" class="orgLink">${auth.authName}</a>
								</li>
							</c:if>
							<c:if test="${not empty auth.children}">
								<li>
									<a href="${empty auth.authHref?'javascript:void(0)':auth.authHref}" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">${auth.authName}<span class="caret"></span></a>
									<ul class="dropdown-menu">
										<c:forEach items="${auth.children}" var="childAuth">
											<c:choose>
											<c:when test="${sessionRoleId==1}"><!--如果是管理员-->
												<li>
													<a href="${pageContext.request.contextPath}${childAuth.authHref}" class="orgLink">${childAuth.authName}</a>
												</li>
											</c:when>
												<c:otherwise>
													<shiro:hasPermission name="${childAuth.authCode}">
														<!--是否含有班级课表查询菜单-->
														<li>
															<a href="${pageContext.request.contextPath}${childAuth.authHref}" class="orgLink">${childAuth.authName}</a>
														</li>
													</shiro:hasPermission>
												</c:otherwise>
											</c:choose>
										</c:forEach>
									</ul>
								</li>
							</c:if>
						</c:forEach>
					</ul>
				<ul class="nav navbar-nav navbar-right" id="ulNav1">
					<li id="nameLi"><a href="javascript:void(0)">${userInfo.trueName}</a></li>

					<!-- 对应headType为5 -->
					 <li class="dropdown" id="logoLi">
		<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
						<c:choose>
								<c:when test="${empty LOGO}">
									<img class="img-rounded" src="${pageContext.request.contextPath}/assets/img/schoolLogo/avatar.png"  style="height:44px;">　　
								</c:when>
								<c:otherwise>
									<img class="img-rounded" src="${pageContext.request.contextPath}/upload/logo/enterprise/${LOGO}" style="height:44px;">　　
								</c:otherwise>
						</c:choose><span class="caret"></span>
						</a>						
						<ul class="dropdown-menu">


							<li><a href="${pageContext.request.contextPath}/sys/personal/list.do"><i class="glyphicon glyphicon-user prs"></i>个人中心</a></li>
							<li><a href="${pageContext.request.contextPath}/logout.do" class="noAuthcLink">退出</a></li>
						</ul>
					</li> 
				</ul>

			</div>
			<!-- /.navbar-collapse -->
		</div>
		<!-- /.container-fluid -->
	</nav> 






 	
	

	
